package com.koron.device.bean;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.koron.bean.query.PageQuery;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.List;

/**
 * @author qingfeng
 * @description: TODO
 * @date 2021/7/14 11:52
 */
@Data
@ApiModel(value = "设备异动列表查询", description = "设备异动列表查询")
public class EquipmentChangeQuery extends PageQuery {

    @ApiModelProperty(value = "异动标题")
    private String name;

    @ApiModelProperty(value = "设备id")
    private String equipmentId;

    @ApiModelProperty(value = "设备名称")
    private String equipmentName;

    @ApiModelProperty(value = "设备管理部门")
    private String equipDept;

    @ApiModelProperty(value = "异动类型")
    private Integer changeType;

    @ApiModelProperty(value = "异动单状态")
    private List<String> statusList;

    @ApiModelProperty(value = "创建人")
    private String createUserName;

    @ApiModelProperty(value = "创建时间，格式：yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @JsonFormat(pattern="yyyy-MM-dd",timezone = "GMT+8")
    private List<Date> createTime;
}
